summaryrefslogtreecommitdiff
path: root/src/app/(main)/api/auth/[...all]/route.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/(main)/api/auth/[...all]/route.ts')
-rw-r--r--src/app/(main)/api/auth/[...all]/route.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/(main)/api/auth/[...all]/route.ts b/src/app/(main)/api/auth/[...all]/route.ts
new file mode 100644
index 0000000..677b24c
--- /dev/null
+++ b/src/app/(main)/api/auth/[...all]/route.ts
@@ -0,0 +1,4 @@
+import { auth } from '@/server/auth';
+import { toNextJsHandler } from 'better-auth/next-js';
+
+export const { POST, GET } = toNextJsHandler(auth);